const express = require('express');
const router = express.Router();
const deviceController = require('../controllers/device.controller');

router.get('/devices', deviceController.getDevices);
router.post('/devices', deviceController.addDevice);
router.delete('/devices/:id', deviceController.deleteDevice);
router.put('/devices/:id/state', deviceController.updateDeviceState);

module.exports = router;